package com.wolfking.converter.transform.base;


import com.wolfking.converter.transform.FieldTransform;

import java.math.BigDecimal;

public class BigDecimalFieldTransform implements FieldTransform<BigDecimal> {
    @Override
    public boolean canTransform(Class<?> fieldType) {
        return fieldType.equals(BigDecimal.class);
    }

    @Override
    public BigDecimal transform(Object value) {
        return new BigDecimal(value.toString());
    }
}
